package pro.shushi.pamirs.demo.core.util;

import pro.shushi.pamirs.meta.annotation.fun.extern.Slf4j;

import java.text.SimpleDateFormat;
import java.util.Date;

@Slf4j
public class DateUtil {

    public static String toyyyyMMddStr(Date date){
        // 定义日期格式
        SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd");
        return formatter.format(date);
    }

}